//
//  FTMediator.h
//  FTMediator
//
//  Created by JackieYip on 2017/6/9.
//  Copyright © 2017年 mondial-d. All rights reserved.
//

#import <Foundation/Foundation.h>

#define kFTMediator                 ([FTMediator sharedInstance])

@interface FTMediator : NSObject

+ (instancetype)sharedInstance;

// 远程App调用入口
- (id)performActionWithUrl:(NSURL *)url completion:(void(^)(NSDictionary *info))completion;
// 本地组件调用入口
- (id)performTarget:(NSString *)targetName action:(NSString *)actionName params:(NSDictionary *)params shouldCacheTarget:(BOOL)shouldCacheTarget shouldReturnValue:(BOOL)shouldReturnValue;
- (void)releaseCachedTargetWithTargetName:(NSString *)targetName;

@end
